Repository navigation
feat: add sticky PR drift diff comments, Node 24 runtime, and CI fixes - #25
Conversation
Code Review: Principal Software Engineer & Security ResearcherReviewed the changes in Findings
No critical injection, auth bypass, or data-exposure issues were found. Secrets masking, input validation on version/fail_on, and the sticky-comment design (with truncation) are well done. Tests cover the happy path, invalid versions, and comment create/update flows. Go / No-Go VerdictConditional Go. The code is safe to deploy for most users, but the unpinned remote install script is a material supply-chain risk that should be addressed (or explicitly accepted with a documented trust boundary) before wide adoption. The pagination limit is the next practical reliability improvement. Otherwise the feature is cleanly implemented and the CI/runtime upgrades are welcome. Automated rigorous review focused on critical issues only. |
Summary
Implements pbufio/pbuf-registry#45 and resolves existing CI/security issues on
main:drift_diff,fail_on,against,working_directory,comment_on_pr,github_token):pbuf drift diff --format=markdown --fail-on=<threshold>, writesdrift_markdown/drift_exit_codeoutputs and Step Summary, and creates or updates a single sticky PR comment (<!-- pbuf-drift-diff -->) via GitHub REST API without adding extra npm dependencies.GITHUB_TOKEN(403) with a warning rather than failing clean PR builds, and posts the drift report before marking the step failed when breaking changes exceedfail_on.node24and default CLI version tov0.16.0(pluslatestsupport).versionand passes it as a positional shell argument instead of string interpolation; maskspbuf_tokenandgithub_tokenviacore.setSecret.@actions/execexplicitly and removes unused@actions/tool-cache.v0.5.0smoke test 404 inci.yml.actions/checkout@v6,actions/setup-node@v6,actions/upload-artifact@v6, andgithub/codeql-action/*@v4.